<oc-dialog oc-dialog-title="打开测试用例"
	oc-dialog-icon="lemoncelogo"
	id="open-case"
	oc-dialog-switch="MS" style="width:32rem;height:30rem;">
	<div class="grid" ng-controller="OpenCase">
		<nav class="oc-toolbar" style="width:100%;">
			<button ng-click="isReviewed=''" class="ico review-all"
				ng-class="{active:isReviewed===''}"
				ng-diabled="reviewedTypeDisabled"></button>
			<button ng-click="isReviewed=true" class="ico review-yes"
				ng-class="{active:isReviewed===true}"
				ng-diabled="reviewedTypeDisabled"></button>
			<button ng-click="isReviewed=false" class="ico review-no"
				ng-class="{active:isReviewed===false}"
				ng-diabled="reviewedTypeDisabled"></button>
			<input type="text" class="search right" ng-model="keyword" />
		</nav>
		<oc-list style="bottom:2rem;left:.3rem;width:20rem;top:1.7rem">
			<oc-row ng-repeat="c in caseList|filter:{name:keyword,reviewed:isReviewed}|filter:tagsFilterFn"
				ng-class="{active:caseData===c}"
				ng-click="watchCase(c)">
				<oc-col label="用例名称" width="240">{{c.name}}</oc-col>
				<oc-col label="审阅" width="40" locked>{{c.reviewed?'是':'否'}}</oc-col>
				<oc-col label="更新时间" width="90" locked>{{c.updatetime|date:'yyyy-MM-dd'}}</oc-col>
			</oc-row>
		</oc-list>
		<div style="top:1.7rem;right:.3rem;left:20.6rem;bottom:2rem;
			border:1px solid #ccc;list-style:none;padding:0.3rem;box-sizing:border-box;">
			<!--<p ng-hide="caseData">选择一个查看描述</p>
			<p ng-show="caseData">{{caseData.comment}}</p>-->
			<span class="tag-selector"
				ng-repeat="(tag, checked) in tagTable"
				ng-class="{'checked': checked}"
				ng-click="tagTable[tag]=!checked">
				{{tag}}&nbsp;
			</span>
		</div>
		<button style="right:0.3rem;bottom:0.3rem"
			ng-disabled="!caseData"
			ng-click="open()">打开</button>
	</div>
</oc-dialog>
